<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>温州佳博工艺品有限公司 - 金属工艺品定制专家</title>
  <meta name="description" content="温州佳博工艺品有限公司创建于2008年，专业从事金属工艺品、礼品定制，包括徽章、奖牌、纪念币、钥匙扣等产品。20年生产经验，ISO9001认证，全球客户信赖。">
  <meta name="keywords" content="金属工艺品,礼品定制,徽章,奖牌,纪念币,钥匙扣,温州佳博">
  <!-- 添加 CSP 策略 -->
  <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';">
</head>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
  
  <!-- 错误处理脚本 -->
  <script>
    // 防止外部脚本错误影响应用
    window.addEventListener('error', function(event) {
      if (event.filename && event.filename.includes('content_scripts')) {
        event.preventDefault();
        console.warn('已忽略外部脚本错误:', event.error);
        return false;
      }
    });
    
    // 防止未处理的 Promise 错误
    window.addEventListener('unhandledrejection', function(event) {
      if (event.reason && event.reason.message && event.reason.message.includes('shadowRoot')) {
        event.preventDefault();
        console.warn('已忽略 shadowRoot 相关错误');
        return false;
      }
    });
  </script>
</body>

</html>